package cn.bootx.table.modify.pgsql.base;

import cn.bootx.table.modify.annotation.DbComment;
import cn.bootx.table.modify.annotation.DbTable;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * MyBatis Plus注解创建表
 * @author xxm
 * @date 2023/6/2
 */
@DbComment("MyBatis Plus注解创建表")
@TableName("mp_db_entity")
@DbTable
@Data
public class MpDbEntity {
    @TableId
    private Long id;

    private Date date;

    @TableField("date_2")
    private LocalDateTime date2;

    private LocalDate date3;

}
